/**
 * @ProjectName:schoolbus
 * @FileName: DriverLog.java
 * @PackageName: edu.xpu.project.log.entity
 * @Company:北京有生博大软件有限公司（西安分公司）
 * @Copyright (c) 2017,RiseSoft  All Rights Reserved.
 * @date 2017年5月26日 下午1:24:48
 */
package edu.xpu.project.log.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.xpu.project.user.entity.DriverEntity;

/**
 * @ClassName: DriverLog.java
 * @Description: 司机日志信息
 *
 * @author liukang
 * @date 2017年5月26日 下午1:24:48
 * @version 
 * @since JDK 1.6
 */
@Entity(name="DriverLog")
@Table(name="DRIVER_LOG")
public class DriverLog implements Serializable {

	private static final long serialVersionUID = 7500723860361811480L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;
	
	private Date createDate;			//创建时间
	private Long createPersonId;		//创建人id

	/**
	 * 司机日志属于某一个司机
	 */
	@ManyToOne(optional=true)
	@JoinColumn(name="driver_id")
	private DriverEntity driverEntity;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Long getCreatePersonId() {
		return createPersonId;
	}

	public void setCreatePersonId(Long createPersonId) {
		this.createPersonId = createPersonId;
	}

	public DriverEntity getDriverEntity() {
		return driverEntity;
	}

	public void setDriverEntity(DriverEntity driverEntity) {
		this.driverEntity = driverEntity;
	}
	
}

